#include <iostream>

using namespace std;

int main(void)
{
	int *p = new int;
	int *arr = new int[10];
	int i;

	*p = 100;
	cout << *p << endl;

	for (i = 0; i < 10; i++)
		arr[i] = i + 1;

	for (i = 0; i < 10; i++)
		cout << arr[i] << " ";
	cout << endl;

	delete p;

	delete[] arr;

	return 0;
}

